/*
 * Copyright (C) 2015 Apple Inc. All rights reserved.
 *
 * This document is the property of Apple Computer, Inc.
 * It is considered confidential and proprietary.
 *
 * This document may not be reproduced or transmitted in any form,
 * in whole or in part, without the express written permission of
 * Apple Inc.
 */
#ifndef __PLATFORM_DISPLAY_COLOR_MANAGER_TABLES_H
#define __PLATFORM_DISPLAY_COLOR_MANAGER_TABLES_H

//identity matrix
const uint32_t linear_identity_matrix_tables[] = {
	0x00001000, 0x00000000,  0x00000000, 0x00000000,
	0x00000000, 0x00000000,  0x00001000, 0x00000000,
	0x00000000, 0x00000000,  0x00000000, 0x00000000,
	0x00001000, 0x00000000,  0x00000000,
};

const uint32_t linear_rgb_engamma_tables[] = {
	0x001a0000,
	0x00470033,
	0x00650057,
	0x007c0071,
	0x00900087,
	0x00a20099,
	0x00b100aa,
	0x00c000b9,
	0x00cd00c6,
	0x00d900d3,
	0x00e500df,
	0x00f000eb,
	0x00fa00f5,
	0x01040100,
	0x010e0109,
	0x01170113,
	0x0120011c,
	0x01290124,
	0x0131012d,
	0x01390135,
	0x0141013d,
	0x01480144,
	0x0150014c,
	0x01570153,
	0x015e015a,
	0x01640161,
	0x016b0168,
	0x0172016e,
	0x01780175,
	0x017e017b,
	0x01840181,
	0x018a0187,
	0x0190018e,
	0x01960193,
	0x019c0199,
	0x01a2019f,
	0x01a701a4,
	0x01ac01aa,
	0x01b201af,
	0x01b701b4,
	0x01bc01ba,
	0x01c101bf,
	0x01c601c4,
	0x01cb01c9,
	0x01d001ce,
	0x01d501d3,
	0x01da01d8,
	0x01df01dc,
	0x01e301e1,
	0x01e801e6,
	0x01ec01ea,
	0x01f101ef,
	0x01f501f3,
	0x01fa01f8,
	0x01fe01fc,
	0x02030200,
	0x02070205,
	0x020b0209,
	0x020f020d,
	0x02130211,
	0x02170215,
	0x021b0219,
	0x021f021d,
	0x02230221,
	0x02270225,
	0x022b0229,
	0x022f022d,
	0x02330231,
	0x02370235,
	0x023b0239,
	0x023e023c,
	0x02420240,
	0x02460244,
	0x02490248,
	0x024d024b,
	0x0251024f,
	0x02540252,
	0x02580256,
	0x025b0259,
	0x025f025d,
	0x02620260,
	0x02660264,
	0x02690267,
	0x026c026b,
	0x0270026e,
	0x02730271,
	0x02760275,
	0x027a0278,
	0x027d027b,
	0x0280027f,
	0x02830282,
	0x02870285,
	0x028a0288,
	0x028d028b,
	0x0290028f,
	0x02930292,
	0x02960295,
	0x029a0298,
	0x029d029b,
	0x02a0029e,
	0x02a302a1,
	0x02a602a4,
	0x02a902a7,
	0x02ac02aa,
	0x02af02ad,
	0x02b202b0,
	0x02b502b3,
	0x02b802b6,
	0x02ba02b9,
	0x02bd02bc,
	0x02c002bf,
	0x02c302c2,
	0x02c602c5,
	0x02c902c7,
	0x02cc02ca,
	0x02ce02cd,
	0x02d102d0,
	0x02d402d3,
	0x02d702d5,
	0x02d902d8,
	0x02dc02db,
	0x02df02de,
	0x02e202e0,
	0x02e402e3,
	0x02e702e6,
	0x02ea02e8,
	0x02ec02eb,
	0x02ef02ee,
	0x02f202f0,
	0x02f402f3,
	0x02f702f5,
	0x02f902f8,
	0x02fc02fb,
	0x02ff02fd,
	0x03010300,
	0x03040302,
	0x03060305,
	0x03090307,
	0x030b030a,
	0x030e030c,
	0x0310030f,
	0x03130311,
	0x03150314,
	0x03180316,
	0x031a0319,
	0x031d031b,
	0x031f031e,
	0x03210320,
	0x03240323,
	0x03260325,
	0x03290327,
	0x032b032a,
	0x032d032c,
	0x0330032f,
	0x03320331,
	0x03340333,
	0x03370336,
	0x03390338,
	0x033c033a,
	0x033e033d,
	0x0340033f,
	0x03420341,
	0x03450344,
	0x03470346,
	0x03490348,
	0x034c034a,
	0x034e034d,
	0x0350034f,
	0x03520351,
	0x03550353,
	0x03570356,
	0x03590358,
	0x035b035a,
	0x035d035c,
	0x0360035f,
	0x03620361,
	0x03640363,
	0x03660365,
	0x03680367,
	0x036b0369,
	0x036d036c,
	0x036f036e,
	0x03710370,
	0x03730372,
	0x03750374,
	0x03770376,
	0x037a0378,
	0x037c037b,
	0x037e037d,
	0x0380037f,
	0x03820381,
	0x03840383,
	0x03860385,
	0x03880387,
	0x038a0389,
	0x038c038b,
	0x038e038d,
	0x0390038f,
	0x03920391,
	0x03940393,
	0x03970396,
	0x03990398,
	0x039b039a,
	0x039d039c,
	0x039f039e,
	0x03a103a0,
	0x03a303a2,
	0x03a503a4,
	0x03a703a6,
	0x03a803a8,
	0x03aa03a9,
	0x03ac03ab,
	0x03ae03ad,
	0x03b003af,
	0x03b203b1,
	0x03b403b3,
	0x03b603b5,
	0x03b803b7,
	0x03ba03b9,
	0x03bc03bb,
	0x03be03bd,
	0x03c003bf,
	0x03c203c1,
	0x03c403c3,
	0x03c603c5,
	0x03c703c6,
	0x03c903c8,
	0x03cb03ca,
	0x03cd03cc,
	0x03cf03ce,
	0x03d103d0,
	0x03d303d2,
	0x03d503d4,
	0x03d603d5,
	0x03d803d7,
	0x03da03d9,
	0x03dc03db,
	0x03de03dd,
	0x03e003df,
	0x03e103e1,
	0x03e303e2,
	0x03e503e4,
	0x03e703e6,
	0x03e903e8,
	0x03ea03ea,
	0x03ec03eb,
	0x03ee03ed,
	0x03f003ef,
	0x03f203f1,
	0x03f303f3,
	0x03f503f4,
	0x03f703f6,
	0x03f903f8,
	0x03fb03fa,
	0x03fc03fb,
	0x03fe03fd,
	0x03ff03ff,
};

const uint32_t linear_rgb_degamma_tables[] = {
	0x00280000,
	0x0077004f,
	0x00c7009e,
	0x012100f0,
	0x018d0152,
	0x020d01c8,
	0x02a40253,
	0x035002f4,
	0x041403ac,
	0x04f1047c,
	0x05e60565,
	0x06f50667,
	0x081e0783,
	0x096308ba,
	0x0ac40a0c,
	0x0c400b7b,
	0x0ddb0d06,
	0x0f920eaf,
	0x11681076,
	0x135d125b,
	0x1571145f,
	0x17a61683,
	0x19fa18c8,
	0x1c701b2d,
	0x1f071db3,
	0x21c0205b,
	0x249c2325,
	0x279a2612,
	0x2abc2922,
	0x2e022c56,
	0x316c2fae,
	0x34fb332a,
	0x38ae36cb,
	0x3c883a92,
	0x40873e7e,
	0x44ad4290,
	0x48fa46ca,
	0x4d6d4b2a,
	0x52094fb1,
	0x56cc5460,
	0x5bb75938,
	0x60cc5e37,
	0x66096360,
	0x6b7068b2,
	0x70fb6e2e,
	0x76b673d3,
	0x7c9b79a3,
	0x82ab7f9e,
	0x88e685c3,
	0x8f4d8c14,
	0x95e09291,
	0x9c9e9939,
	0xa38aa00e,
	0xaaa2a710,
	0xb1e7ae3f,
	0xb95ab59b,
	0xc0fabd24,
	0xc8c9c4db,
	0xd0c5ccc1,
	0xd8f1d4d5,
	0xe14cdd18,
	0xe9d5e58b,
	0xf28fee2c,
	0xfb78f6fe,
	0xffffffff,
};

#endif
